# $Id: PKGBUILD 85733 2013-03-05 21:38:07Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Jeff Horelick <jdhore1@gmail.com>
# Contributor: skydrome <skydrome@i2pmail.org>

pkgname=the_silver_searcher
pkgver=0.14
pkgrel=1
pkgdesc='Code searching tool similar to Ack, but faster'
url='https://github.com/ggreer/the_silver_searcher'
license=('Apache')
depends=('pcre' 'zlib')
arch=('x86_64' 'i686')
source=("https://github.com/ggreer/$pkgname/archive/$pkgver.tar.gz")
sha256sums=('9334d6f41685963c41790502fcfd83ed0ac664d94626d9fee44ae5c33c616bb3')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  sed -i 's:configure:configure --prefix=/usr:' build.sh
  ./build.sh
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
